import request from '@/utils/request'

// 获取渠道列表
export function getPageDataApi(data) {
    return request({
        url: '/api/system.room/index',
        method: 'post',
        data: data
    })
}

export function getAllApi(data) {
    return request({
        url: '/api/system.room/getAll',
        method: 'post',
        data: data
    })
}

export function getRoomListApi(data) {
    return request({
        url: '/api/system.room/getList',
        method: 'post',
        data: data
    })
}

export function readApi(data) {
    return request({
        url: '/api/system.room/read',
        method: 'post',
        data: data
    })
}

export function createApi(data) {
    return request({
        url: '/api/system.room/create',
        method: 'post',
        data: data
    })
}

export function saveApi(data) {
    return request({
        url: '/api/system.room/save',
        method: 'post',
        data: data
    })
}

export function deleteApi(data) {
    return request({
        url: '/api/system.room/delete',
        method: 'post',
        data: data
    })
}